package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售信息对象 supermarket_sale
 * 
 * @author faye
 * @date 2024-05-27
 */
public class SupermarketSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;



    /** 销售ID */
    private Long saleId;

    /** 销售编号 */
    @Excel(name = "销售编号")
    private Long saleNumber;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleTime;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long saleQuantity;

    /** 销售利润 */
    @Excel(name = "销售利润")
    private Double saleProfit;

    /** 销售商品ID */
    @Excel(name = "销售商品ID")
    private Long saleCommodityId;

    /** 销售操作员工ID */
    @Excel(name = "销售操作员工ID")
    private Long saleStaffId;

    /** 进价 */
    @Excel(name = "进价")
    private Double saleCost;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private Double salePrice;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    private  SupermarketCommodity supermarketCommodity;

    public SupermarketCommodity getSupermarketCommodity() {
        return supermarketCommodity;
    }

    public void setSupermarketCommodity(SupermarketCommodity supermarketCommodity) {
        this.supermarketCommodity = supermarketCommodity;
    }

    public void setSaleId(Long saleId)
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }
    public void setSaleNumber(Long saleNumber) 
    {
        this.saleNumber = saleNumber;
    }

    public Long getSaleNumber() 
    {
        return saleNumber;
    }
    public void setSaleTime(Date saleTime) 
    {
        this.saleTime = saleTime;
    }

    public Date getSaleTime() 
    {
        return saleTime;
    }
    public void setSaleQuantity(Long saleQuantity) 
    {
        this.saleQuantity = saleQuantity;
    }

    public Long getSaleQuantity() 
    {
        return saleQuantity;
    }
    public void setSaleProfit(Double saleProfit)
    {
        this.saleProfit = saleProfit;
    }

    public Double getSaleProfit()
    {
        return saleProfit;
    }
    public void setSaleCommodityId(Long saleCommodityId) 
    {
        this.saleCommodityId = saleCommodityId;
    }

    public Long getSaleCommodityId() 
    {
        return saleCommodityId;
    }
    public void setSaleStaffId(Long saleStaffId) 
    {
        this.saleStaffId = saleStaffId;
    }

    public Long getSaleStaffId() 
    {
        return saleStaffId;
    }
    public void setSaleCost(Double saleCost)
    {
        this.saleCost = saleCost;
    }

    public Double getSaleCost()
    {
        return saleCost;
    }
    public void setSalePrice(Double salePrice)
    {
        this.salePrice = salePrice;
    }

    public Double getSalePrice()
    {
        return salePrice;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("saleNumber", getSaleNumber())
            .append("saleTime", getSaleTime())
            .append("saleQuantity", getSaleQuantity())
            .append("saleProfit", getSaleProfit())
            .append("saleCommodityId", getSaleCommodityId())
            .append("saleStaffId", getSaleStaffId())
            .append("saleCost", getSaleCost())
            .append("salePrice", getSalePrice())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
                .append("supermarketCommodity", getSupermarketCommodity())
            .toString();
    }
}
